import request from "@/utils/request";

let prefix = ''

export function dataSourceAllList(data) {
  return request({
    url: prefix + "/datasourceManage/getAllDataSourceList",
    method: "get",
    data
  });
}
export function dataSourcePage(data) {
  return request({
    url: prefix + "/datasourceManage/page",
    method: "post",
    data
  });
}
export function dataSourceUpdate(data) {
  return request({
    url: prefix + "/datasourceManage/update",
    method: "post",
    data
  });
}

export function dataSourceAdd(data) {
  return request({
    url: prefix + "/datasourceManage/add",
    method: "post",
    data
  });
}
export function dataSourceTestConnection(data) {
  return request({
    url: prefix + "/datasourceManage/testConnection",
    method: "post",
    data
  });
}

export function dataSourceDelete(data) {
  return request({
    url: prefix + `/datasourceManage/delete`,
    method: "delete",
    data: data
  });
}